
$("#login").click(function(){
    var name = $("#name").val();
    var password = $("#pwd").val();
    $.post("user/login",{"name":name,"password":password},
        function(data){
            if(data==true){
                window.location.href="user/index";
            }else{
                alert("用户名或者密码错误！！！");
            }

        }
    );
});